/**
 * 主类Main
 */
public class Main {
    public static void main(String[] args) {
        // 创建图书对象
        Book book = new Book();

        // 设置图书信息
        book.setBookInfo("Java编程思想", "Bruce Eckel", "978-7-111-60453-3");

        // 获取并打印图书信息
        System.out.println("书名: " + book.getTitle());
        System.out.println("作者: " + book.getAuthor());
        System.out.println("ISBN: " + book.getISBN());

        // 使用多态形式调用图书信息类
        BookInterface bookInterface = new Book();
        bookInterface.setBookInfo("Effective Java", "Joshua Bloch", "978-0-13-468599-1");
        System.out.println("书名: " + bookInterface.getTitle());
        System.out.println("作者: " + bookInterface.getAuthor());
        System.out.println("ISBN: " + bookInterface.getISBN());
    }
}